home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.20000217-20000824 / 000346_news@columbia.edu _Sat Jun 3 14:08:43 2000.msg < prev    next >
Internet Message Format  |  2000-08-23  |  4KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
  3.     by uhaligani.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id OAA12612
  4.     for <kermit.misc@cpunix.cc.columbia.edu>; Sat, 3 Jun 2000 14:08:43 -0400 (EDT)
  5. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  6.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id OAA14435
  7.     for <kermit.misc@watsun.cc.columbia.edu>; Sat, 3 Jun 2000 14:08:42 -0400 (EDT)
  8. Received: (from news@localhost)
  9.     by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id NAA05808
  10.     for kermit.misc@watsun.cc.columbia.edu; Sat, 3 Jun 2000 13:50:29 -0400 (EDT)
  11. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  12. From: fdc@columbia.edu (Frank da Cruz)
  13. Subject: Re: Login garbage
  14. Date: 3 Jun 2000 17:50:27 GMT
  15. Organization: Columbia University
  16. Message-ID: <8hbgh3$5le$1@newsmaster.cc.columbia.edu>
  17. To: kermit.misc@columbia.edu
  18.  
  19. In article <sjg664v25ri77@corp.supernews.com>,
  20. Alan Rice <alanrice@bigfoot.com> wrote:
  21. : Hello Guy's I'm having a simple problem that's been giving me fits.
  22. : Some times when a client machine calls into our unix host I get false
  23. : positive login's.
  24. : What is happening is that the modem seems to get trashed out. instead of
  25. : answering with a clean <login: >. It will answer with trash like <RING's
  26. : Passwd: >.
  27. : I thought I wrote the login script below right to handle this but it's not
  28. : working.
  29. : I think it's seeing the portion for the login input  it's looking for in the
  30. : input buffer as < login: RING> and going forward to the password portion.
  31. : Now RING is not the only garbage I've seen, There has been CONNECT , LC1,
  32. : LC2, ect. I wanted it to look for <login: >.
  33. : What am I overlooking? In the Using C-Kermit 2nd Edition on Pg 436, the unix
  34. : login script is incomplete.
  35. :
  36. Right -- it's a mistake, documented in the update notes:
  37.  
  38.   http://www.columbia.edu/kermit/ckermit2.html#xiv
  39.  
  40. The "input xxx Password" sequence is missing.  However, the copies of these
  41. macros that are delivered with C-Kermit (in the ckermit.ini file) are correct:
  42.  
  43.   ftp://kermit.columbia.edu/kermit/f/ckermit.ini
  44.  
  45. The RING, CONNECT, and other sequences you are seeing are result codes from
  46. your modem, which are used by software such as Kermit when dialing out.
  47.  
  48. When a modem is used for receiving calls, however, it should be configured
  49. not to display result codes because if it does, as you can see, this
  50. confuses the heck out of getty.  Example: Call comes in, modem turns on RI
  51. signal and prints RING; getty turns on DTR, sees RI and spawns login, which
  52. issues the "login:" prompt.  Login sees "RING" as somebody trying to login
  53. under the username RING and prints the Password: prompt.  Meanwhile the
  54. modem has echoed the "login:" prompt back at the computer, which it reads
  55. as the password, which normally fails, so it issues another login prompt.
  56. Well, by this time the modem has issued its CONNECT report, and the computer
  57. reads this as a response to its second login prompt, etc etc.  This is
  58. known in the trade as "getty babble".
  59.  
  60. To avoid getty babble, the answering modem must be configured as follows
  61. (the commands shown are for USR modems but should be fairly portable):
  62.  
  63.   &C1     CD up only when connected to another modem.
  64.   &D2     Modem hangs up if computer drops DTR.
  65.   E0F1    Don't echo.
  66.   S0=1    Answer the phone after 1 ring (Answer mode).
  67.   Q2      Suppress result codes in answer mode (or Q1, always suppress them).
  68.   S2=128  Disable "+++" escape.
  69.  
  70. The tricky part is to set up your answering modem so these commands are
  71. always in effect; the method varies from modem to modem.  Example for USR:
  72.  
  73.   AT&C1&D2E0F1S0=1Q2S2=128
  74.   AT&W
  75.  
  76. The last command means "write the current configuration to NVRAM to serve
  77. as the reset default".
  78.  
  79. - Frank